package org.devocean.groupbuying.service.impl;

import org.devocean.groupbuying.dao.RoleDAO;
import org.devocean.groupbuying.domain.Role;
import org.devocean.groupbuying.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleDAO roleDAO;
	
	
	public Role getAuthority(String authority) {
		
		return roleDAO.findAuthority(authority);
	}

}
